import request from '@/utils/request'

// 查询配送费模板列表
export function listDeliveryTemplates(query) {
  return request({
    url: '/business/deliveryTemplates/list',
    method: 'get',
    params: query
  })
}

// 查询配送费模板所有列表
export function listAllDeliveryTemplates(query) {
  return request({
    url: '/business/deliveryTemplates/listAll',
    method: 'get',
    params: query
  })
}

// 查询配送费模板详细
export function getDeliveryTemplates(id) {
  return request({
    url: '/business/deliveryTemplates/getInfo/' + id,
    method: 'get'
  })
}

// 新增配送费模板
export function addDeliveryTemplates(data) {
  return request({
    url: '/business/deliveryTemplates/add',
    method: 'post',
    data: data
  })
}

// 修改配送费模板
export function updateDeliveryTemplates(data) {
  return request({
    url: '/business/deliveryTemplates/edit',
    method: 'post',
    data: data
  })
}

// 删除配送费模板
export function delDeliveryTemplates(id) {
  return request({
    url: '/business/deliveryTemplates/remove/' + id,
    method: 'get'
  })
}
